package com.yijumao.shop.mapper;

import com.yijumao.shop.domain.OrderItem;
import com.yijumao.shop.domain.Orders;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderItemMapper {
    int deleteByPrimaryKey(String itemid);

    int insert(OrderItem record);

    OrderItem selectByPrimaryKey(String itemid);

    List<OrderItem> selectAll();

    int updateByPrimaryKey(Orders record);

    //根据订单编号oid查询该订单的所有订单项
    List<OrderItem> selectByOid(String oid);
}